home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / nokbd.c < prev    next >
C/C++ Source or Header  |  1979-12-31  |  610b  |  43 lines

  1. /* --------------------------------- nokbd.c   ------------------------------ */
  2.  
  3. /* This is part of the flight simulator 'fly8'.
  4.  * Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  5. */
  6.  
  7. /* The Keyboard device driver for when you have none.
  8. */
  9.  
  10. #include "fly.h"
  11.  
  12.  
  13. LOCAL_FUNC int FAR
  14. nkinit (char *options)
  15. {return (0);}
  16.  
  17. LOCAL_FUNC void FAR
  18. nkterm (void)
  19. {}
  20.  
  21. LOCAL_FUNC int FAR
  22. nkread (void)
  23. {return (-1);}
  24.  
  25. LOCAL_FUNC int FAR
  26. nkgetch (void)
  27. {return (0);}
  28.  
  29. LOCAL_FUNC int FAR
  30. nkwait (void)
  31. {return (0);}
  32.  
  33. struct KbdDriver NEAR KbdNone = {
  34.     "NoKbd",
  35.     0,
  36.     NULL,
  37.     nkinit,
  38.     nkterm,
  39.     nkread,
  40.     nkgetch,
  41.     nkwait
  42. };
  43.